package com.dg11185.nearshop.net.request;

import com.dg11185.libs.network.http.client.HttpRequest;
import com.dg11185.libs.utils.MD5.MD5Utils;
import com.dg11185.nearshop.app.Constants;
import com.dg11185.nearshop.net.response.JobTypeResponse;

/**
 * 
 * @author：Daibo    
 * @time：2014-5-26 下午2:19:31
 */
public class JobTypeRequest extends HttpRequest<JobTypeResponse> {

    public JobTypeRequest() {
        super(Constants.ADDRESS, Constants.getJobType);
        addParam("chshToken", Constants.TOKEN);
        addParam("chshSign", MD5Utils.getMD5Str(getParams(), Constants.MD5_key));
    }

    @Override
    protected JobTypeResponse parseJson(String response) throws Exception {
        JobTypeResponse res = new JobTypeResponse();
        res.parseJson(response);
        return res;
    }

}
